Fix config file parsing for VMX domains.
authoradsharma@los-vmm.sc.intel.com <adsharma@los-vmm.sc.intel.com>
Tue, 9 Aug 2005 19:06:44 +0000 (11:06 -0800)
committeradsharma@los-vmm.sc.intel.com <adsharma@los-vmm.sc.intel.com>
Tue, 9 Aug 2005 19:06:44 +0000 (11:06 -0800)
commit6692cc98bef26f185eff89844b47eabe1b9c4473
tree9a0ac48a39d2277ec1934a655d5879a281e649f1
parent191a7d28f87ee454135493c59d1273a4e9c577ab
Fix config file parsing for VMX domains.

If we define "vif" in the config file, image.py will raise error "vmx:
missing vbd configuration". The reason is "vif" is dealt with as a "vbd"
device.

This patch fixes this issue by dealing with "vbd" and "vif " separately,
removing "macaddr" arg and parsing mac address from "vif" instead.

Also, the vbd doesn't have to be a file anymore, but can be a physical
disk partition.

Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
tools/examples/xmexample.vmx
tools/python/xen/xend/image.py